package com.example.seatabusiness.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 库存服务：扣减库存
 */
@FeignClient(value = "seata-storage")
@Service
public interface SeataStorageService {

    @RequestMapping(path = "/storage/{commodityCode}", method = RequestMethod.GET)
    String storage(@RequestParam("commodityCode") String commodityCode);

}
